<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;

use App\Models\User;

//使用类
use App\Http\Controllers\Controller;


//缓存控制器
class HuancunController extends Controller
{

    //
    public function index(Request $request){
        //$data = User::get();

        //dd($data);
        //写入缓存
        //\Cache::put("data",$data,10);
        //读取缓存
        //$data = \Cache::get('data');

        //删除缓存
       // \Cache::forget('data');

       // dd($data);
        // 删除所有缓存
        //Cache::flush();

    }



	
}
